﻿using Microsoft.AspNetCore.Identity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhiJiao.Models.Entities.Enums;

namespace ZhiJiao.Models.Entities
{
    [Table("Roles")]
    public class Role : IdentityRole
    {
        public int IsLock { get; set; }

        public string? Describe { get; set; }

        public List<Module>? Modules { get; set; }

        public List<RoleModule>? RoleModules { get; set; }

        public int Kind { get; set; } = 0;

        public long? InstructionId { get; set; }

        public virtual Instruction? Instruction { get; set; }

        public RoleType Type { get; set; }
    }
}
